package com.example.demo.pojo.param;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class ParamSaveReqNew {

    private Converter converter;
    private Parameters parameters;
    private String device;
    private String command;
    private String target;
    private String sn;
    private String transtype;
    @Data
    static public class Converter{
        public List<Port> Port;
        public List<Socket> Sockets = new ArrayList<>();
//        public Socket Socket;

    }

    @Data
    static public class Port{
        public String devMode;
        public String baudrate;
        public String databit;
        public String parity;
        public String stopbit;
        public String flowControl;
        public String dev;
    }

    @Data
    static public class Socket{
        public String serverAddr0;
        public String serverPort0;
    }

    @Data
    static public class Parameters{
        public Profile Profile;
        public Freqz Freqz;
    }

    @Data
    static public class Profile{
        public String version;
        public String stationID ;
        public String device;
        public String sn;
        public String fixedlength;
        public String Switchafc;
        public String switchscan;
        public String bandwidth;
        public String baud;
        public String LAT;
        public String LONG;
        public String ALT;
    }

    @Data
    static public class Freqz{
        public String freqz0;
        public String freqz1;
        public String freqz2;
        public String freqz3;
        public String freqz4;
        public String freqz5;
        public String freqz6;
        public String freqz7;
    }

}


